﻿@{
    Layout = null;
}
@model HandleErrorInfo
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width" />
    <link href="~/Content/Css/styleReset.css" rel="stylesheet" />
    <style>
        .highlight-green {
            font-size: 16px;
            font-weight: bold;
            color: green;
        }
         .highlight-red {
             font-size: 16px;
             font-weight: bold;
             color: red;
         }
    </style>
    <title>错误</title>
</head>
<body>
    <hgroup>
        <h1>错误。</h1>
        <h2>处理你的请求时出错。</h2>
        @if (Model != null)
        {
            <p>
                错误类型:@Model.Exception.GetType().Name<br />
                错误请求: /@Model.ControllerName/@Model.ActionName
            </p>
            <p>
                <pre>详细错误:@if (Model.Exception.GetType().Name == "Exception")
                          {<font class="highlight-green">异常可能被程序捕获处理(*^__^*)</font>
                              @Model.Exception.ToString()                          }
                          else
                          {<font class="highlight-red">异常未被程序捕获处理(●￣(ｴ)￣●)</font>
                              @Model.Exception.ToString()
                          }
                 </pre>
            </p>
        }
    </hgroup>
</body>
</html>